package com.xuanyuan.material

import android.os.Bundle
import android.view.View
import com.xuanyuan.baselibaray.BaseActivity
import com.xuanyuan.material.databinding.ActivityBottomAppBarBinding

/**
 * Copyright (C), 2017-2022, Anker
 * FileName: BottomAppBarActivity
 *
 * @author ken.luo
 * Date: 2022/6/9 15:06
 * Description: 要求Activity的主题必须是MaterialComponents的主题
 * History:
 * 创建者 : ken.luo
 * <author>     <time>     <version>      <desc>
 * 作者姓名      修改时间      版本号          描述
</desc></version></time></author> */

class BottomAppBarActivity : BaseActivity<ActivityBottomAppBarBinding>() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val btnFloatingActionButton = mBinding.btnFloatingActionButton

        btnFloatingActionButton.setOnClickListener(object : View.OnClickListener {
            override fun onClick(v: View?) {
                SnackBarUtils.showSnack(mBinding.root, "hhhaa")
            }
        })

    }

    override fun initLayout(): Int {
        return R.layout.activity_bottom_app_bar
    }

}






